import request from '/@/utils/request'

// 用户列表
export const userLists = (params?: any) => request.get('/user/user/lists', params);

// 添加用户
export const userAdd = (params?: any) => request.post('/user/user/add', params);

// 编辑用户
export const userEdit = (params?: any) => request.post('/user/user/edit', params);

// 用户详情
export const userDetail = (params?: any) => request.get('/user/user/detail', params);

// 用户token信息
export const userToken = (params?: any) => request.get('/user/user/token', params);

// 删除token
export const userDeleteToken = (params?: any) => request.post('/user/user/deleteToken', params);

// 修改用户状态
export const userUpdateStatus = (params?: any) => request.post('/user/user/updateStatus', params);

// 用户导出
export const userExport = (params?: any) => request.post('/user/user/export', params);

// 用户导入
export const userImport = (params?: any, callback?:any) => request.post('/user/user/import', params,{isImport:true,callback:callback});
